FROM nginx:1.25-alpine

# 拷贝自定义 Nginx 配置
COPY nginx.conf /etc/nginx/conf.d/default.conf

# 拷贝静态站点文件
WORKDIR /usr/share/nginx/html
COPY index.html ./
COPY style.css ./
COPY script.js ./

EXPOSE 80

# 健康检查
HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD wget -qO- http://127.0.0.1/ >/dev/null 2>&1 || exit 1

